package oop;

import java.util.Scanner;

public class Question {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a = (int) (Math.random() * 100 + 1);
        int num;
        int count = 0;
        do {
            num = in.nextInt();
            count = count + 1;
            if (num > a) {
                System.out.println("偏大");
            } else if (num < a) {
                System.out.println("偏小");
            }
        } while ( num != a);
        System.out.println("恭喜你猜对了,共用了" + count + "次");
    }
}
